//
//  TBConfigure.h
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/9/15.
//  Copyright © 2017年 bob. All rights reserved.
//字体，颜色，高度之类

#ifndef TBConfigure_h
#define TBConfigure_h

/* ********************获取frame大小********************* */
//StatusBar 高度
#define StatusBar_Height [UIApplication sharedApplication].statusBarFrame.size.height

//NavBar高度
#define NavigationBar_Height(navigationController) (navigationController.navigationBar.frame.size.height)

//TabBar高度
#define TabBar_Height(tabBarController) (tabBarController.tabBar.frame.size.height)

//获取屏幕 宽度、高度
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)

#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

/* ********************获取frame大小********************* */



/* ********************颜色类********************* */
//获取16进制颜色
#define kColorRGBA(c,a) [UIColor colorWithRed:((c>>16)&0xFF)/255.0	\
green:((c>>8)&0xFF)/255.0	\
blue:(c&0xFF)/255.0         \
alpha:a]

#define kColorRGB(c)    [UIColor colorWithRed:((c>>16)&0xFF)/255.0	\
green:((c>>8)&0xFF)/255.0	\
blue:(c&0xFF)/255.0         \
alpha:1.0]

// 获取RGB颜色
#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1]

#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]


// rgb颜色转换（16进制->10进制）
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

//清除背景色
#define CLEARCOLOR [UIColor clearColor]

//APP 主题颜色
#define TBColorAppTheme UIColorFromRGB(0x2E4361)

#define TBColorContentTheme UIColorFromRGB(0x6092ec)

//导航栏颜色
#define TBColorNavBar TBColorAppTheme
#define TBColorNavBarTitle UIColorFromRGB(0xffffff)
#define TBColorTabBarTitle UIColorFromRGB(0x888888)

//View 默认背景色
#define TBColorViewDefaultBackground UIColorFromRGB(0xeeeeee)

//tableView 背景色
#define TBColorTableViewBg UIColorFromRGB(0xEAEAEA)

//白色
#define TBColorWhite [UIColor whiteColor]

//边框灰色
#define TBColorBorderGray UIColorFromRGB(0xcccccc)

//分割线颜色
#define TBColorSeparatorLine UIColorFromRGB(0xcccccc)

//不可用时显示的颜色
#define TBColorDisable UIColorFromRGB(0xdcdcdc)
//字体颜色
#define TBColorTitle    UIColorFromRGB(0x444444)
#define TBColorSubTitle UIColorFromRGB(0x888888)
#define TBColorSubLight UIColorFromRGB(0x999999)

#define TBColorOutBtn   UIColorFromRGB(0xF2414D)
//按钮颜色
#define TBColorProvideBtnbg UIColorFromRGB(0x3880D8)
#define TBColorFinshBtnbg UIColorFromRGB(0xF8C539)
#define TBColorOutLoginbtnbg UIColorFromRGB(0xf75d5d)
/* ********************颜色类********************* */

/* ------------------字体图片大小坐标适配--------------------- */
#define SNN ([UIScreen mainScreen].bounds.size.width)/(750)
#define KZOOM6pt(pt) ((pt)*(SNN))

/* ********************字体类********************* */

#define TBFontNavTitle [UIFont systemFontOfSize:19]
#define TBFontTitle    [UIFont systemFontOfSize:14]
#define TBFontSubTitle [UIFont systemFontOfSize:12]
#define TBFont20       [UIFont systemFontOfSize:20]
#define TBFont22       [UIFont systemFontOfSize:22]
#define TBFont24       [UIFont systemFontOfSize:24]
#define TBFont10       [UIFont systemFontOfSize:10]
#define TBFont12       [UIFont systemFontOfSize:12]
#define TBFont13       [UIFont systemFontOfSize:13]
#define TBFont14       [UIFont systemFontOfSize:14]
#define TBFont15       [UIFont systemFontOfSize:15]
#define TBFont16       [UIFont systemFontOfSize:16]

/* ********************字体类********************* */

#endif /* TBConfigure_h */
